<?PHP $this->Html->css('management', null, array('inline' => false)); ?>
<div class="articles index">
	<h2><?php echo __('Catalogue d\'articles');?></h2>
	<table cellpadding="0" cellspacing="0">
	<tr>
			<th><?php echo $this->Paginator->sort('id_article');?></th>
			<th><?php echo $this->Paginator->sort('ref_article');?></th>
			<th><?php echo $this->Paginator->sort('description_article');?></th>
			<th><?php echo $this->Paginator->sort('tarif_brut');?></th>
			<th><?php echo $this->Paginator->sort('description_categorie', 'Catégorie');?></th>
			<th><?php echo $this->Paginator->sort('libelle_groupe_devis', 'Dans le groupe...');?></th>
			
			<th class="actions"><?php echo __('Actions');?></th>
	</tr>
	<?php
	foreach ($articles as $article): ?>
	<tr>
		<td><?php echo ($article['Article']['id_article']); ?>&nbsp;</td>
		<td><?php echo ($article['Article']['ref_article']); ?>&nbsp;</td>
		<td><?php echo ($article['Article']['description_article']); ?>&nbsp;</td>
		<td><?php echo ($article['Article']['tarif_brut']); ?>&nbsp;</td>
		<td><?php echo ($article['categorie']['description_categorie']); ?>&nbsp;</td>
		<td><?php echo ($article['groupe_devis']['libelle_groupe_devis']); ?>&nbsp;</td>
		<td class="actions">
			<?php echo $this->Html->link(__('Voir'), array('action' => 'view', $article['Article']['id_article'])); ?>
			<?php echo $this->Html->link(__('Modifier'), array('action' => 'edit', $article['Article']['id_article'])); ?>
			<?php echo $this->Form->postLink(__('Supprimer'), array('action' => 'delete', $article['Article']['id_article']), null, __('Êtes-vous sûr de vouloir supprimer l\'article "%s" ?', $article['Article']['description_article'])); ?>
		</td>
	</tr>
<?php endforeach; ?>
	</table>
	<p>
	<?php
	echo $this->Paginator->counter(array(
	'format' => __('Page {:page} sur {:pages}')
	));
	?>	</p>

	<div class="paging">
	<?php
		echo $this->Paginator->prev('< ' . __('précédent'), array(), null, array('class' => 'prev disabled'));
		echo $this->Paginator->numbers(array('separator' => ''));
		echo $this->Paginator->next(__('suivant') . ' >', array(), null, array('class' => 'next disabled'));
	?>
	</div>
</div>
<div class="actions">
	<h3><?php echo __('Vous pouvez aussi ...'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Nouvel article'), array('action' => 'add')); ?></li>
		<li><?php echo $this->Html->link(__('Liste des catégories'), array('controller' => 'articlescategories', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('Nouvelle catégorie d\'articles'), array('controller' => 'articlescategories', 'action' => 'add')); ?> </li>
	</ul>
</div>
